home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / Makefile,v < prev    next >
Text File  |  1989-02-21  |  5KB  |  260 lines

  1. head     3.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    grunwald:3.2; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 3.2
  10. date     89.02.20.15.36.07;  author grunwald;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     88.09.21.20.53.33;  author grunwald;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     88.09.18.16.42.38;  author grunwald;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29. 3.2
  30. log
  31. @Start using Gnu library heaps for schedulers
  32. @
  33. text
  34. @#
  35. #    Configurations for different hosts
  36. #
  37. #PARALLEL=1
  38.  
  39. .SUFFIXES:
  40. vpath
  41.  
  42. .SUFFIXES: .o .dep .s .cc
  43. #
  44. #    needed, but over-written by Makefile.host
  45. #
  46. LIB    =bogus
  47.  
  48. vpath   Config.h ./
  49. vpath    %.h  ../Src 
  50. #vpath    %.h  ../Src/RCS
  51. vpath    %.cc ../Src
  52. #vpath    %.cc ../Src/RCS
  53. vpath    %.s  ../Src
  54. #vpath    %.s  ../Src/RCS
  55.  
  56. include Makefile.host
  57. include ../Src/Makefile.compilers
  58. include ../Src/Makefile.files
  59. include Makefile.host
  60.  
  61. OBJ    =$(subst .cc,.o,$(COMPILE-SRC))
  62.  
  63. ifeq ($(HOSTTYPE),sun3)
  64.   ASMOBJ=HardwareContext-sun3.o SpinLock-fake.o\
  65.     SharedMemory-fake.o SharedMalloc-fake.o
  66.   C++FLAGS := $(C++FLAGS)
  67. endif
  68.  
  69. ifeq ($(HOSTTYPE),umax)
  70.   ASMOBJ = HardwareContext-umax.o SpinLock-umax.o \
  71.     SharedMemory-umax.o SharedMalloc-real.o
  72.   C++FLAGS := $(C++FLAGS)
  73. endif
  74.  
  75. ifeq ($(HOSTTYPE),onemax)
  76.   ASMOBJ = HardwareContext-umax.o SpinLock-fake.o \
  77.     SharedMemory-fake.o SharedMalloc-fake.o
  78.   C++FLAGS := $(C++FLAGS)
  79. endif
  80.  
  81. OTHER    = Makefile Makefile.sun Makefile.encore
  82. ALLSRC    = $(ASM) $(SRC) $(HDR) $(OTHER)
  83. ALLOBJ    = $(OBJ) $(ASMOBJ)
  84.  
  85. default: $(LIB)
  86.  
  87. $(LIB):    $(ALLOBJ)
  88.     -rm -f $(LIB)
  89.     ar r $(LIB) $(ALLOBJ)
  90. #    $(RANLIB) $(LIB)
  91.  
  92. mklib:
  93.  
  94.     $(MAKE)
  95.  
  96. #
  97. #    Dependencies to build instances of prototypes
  98. #
  99.  
  100. ../Src/ThreadeventPairingHeap.h ../Src/ThreadEventPairingHeap.cc:
  101.     (cd ../Src; genclass ThreadEvent val PairingHeap)
  102.  
  103. install: installLib installHdr installConfig
  104.  
  105. installLib: $(LIB)
  106.     rm -f $(INSTALL_LIB)/libawe2-$(C++).a
  107.     -install -c -m 666 ../Obj-$(C++)-$(HOSTTYPE)/$(LIB) $(INSTALL_LIB)/$(LIB)
  108.     -$(RANLIB) $(INSTALL_LIB)/$(LIB)
  109.     -chmod 444 $(INSTALL_LIB)/$(LIB)
  110.  
  111. installHdr: $(HDR)
  112.     cd ../Src; \
  113.     echo "FILES = (" > Distfile.tmp ; \
  114.     ls $(HDR) >> Distfile.tmp ; \
  115.     echo " )" >> Distfile.tmp ;\
  116.     echo "HOSTS = (" `hostname` ")" >> Distfile.tmp ;\
  117.     echo '$${FILES} -> $${HOSTS}' >> Distfile.tmp ;\
  118.     echo '    install -y ' $(INSTALL_HDR) ';' >> Distfile.tmp ;\
  119.     rdist -f Distfile.tmp
  120.  
  121. installConfig: Config.h
  122.     -rm -f $(INSTALL_HDR)/Config.h
  123.     ln -s $(INSTALL_HDR)/Config-$(HOSTTYPE).h $(INSTALL_HDR)/Config.h
  124.  
  125. clean:
  126.     -rm -f *.o core *.a
  127.  
  128. cleanAll:
  129.     $(MAKE) -c ../Obj-GCC clean
  130.     $(MAKE) -c ../Obj-g++ clean
  131.  
  132. cleansrc:
  133.     -ci -q $(ALLSRC)
  134.  
  135. dist: $(FILES)
  136.     echo "FILES = (" > Distfile.tmp
  137.     ls $(ALLSRC) >> Distfile.tmp
  138.     echo "    )" >> Distfile.tmp
  139.     echo "HOSTS = ($(HOST))" >> Distfile.tmp
  140.     echo '$${FILES} -> $${HOSTS}' >> Distfile.tmp
  141.     echo '    install -y Awesime/Src;' >> Distfile.tmp
  142.     rdist -f Distfile.tmp
  143.  
  144. #
  145. #    Build the list of files, including the OBJ files. All OBJ
  146. #    files which contain 'Generic' are not included;
  147. #
  148. files:
  149.     echo 'SRC    = \' > Makefile.files
  150.     ls *.cc | sed -e 's/^/    /' -e 's/$$/\\/' -e '$$s/\\$$//' >>Makefile.files
  151.     echo ' ' >> Makefile.files
  152.     echo 'COMPILE-SRC    = \' > Makefile.files
  153.     ls *.cc | sed     -e '/-/d'\
  154.             -e '/Generic/d'\
  155.             -e 's/^/    /'\
  156.             -e 's/$$/\\/'\
  157.             -e '$$s/\\$$//' >>Makefile.files
  158.     echo ' ' >> Makefile.files
  159.     echo 'HDR    = \' >> Makefile.files
  160.     ls *.h | sed -e 's/^/    /' -e 's/$$/\\/' -e '$$s/\\$$//' >>Makefile.files
  161.     echo ' ' >> Makefile.files
  162.     echo 'ASM    = \' >> Makefile.files
  163.     ls *.s | sed -e 's/^/    /' -e 's/$$/\\/' -e '$$s/\\$$//' >>Makefile.files
  164.     echo ' ' >> Makefile.files
  165.  
  166. depend:
  167.     rm -f Makefile.depend
  168.     $(MAKE) -k makefile.depend
  169. #
  170. #    the sed script takes care of an error in the -M flag
  171. #    
  172. makefile.depend: $(subst .cc,.dep, $(COMPILE-SRC))  $(subst .s,.dep, $(ASM))
  173.     cat *.dep | sed -e 's/^\///' >  Makefile.depend 
  174.     
  175. .cc.dep:; $(C++) -M $(C++FLAGS) $^ > $*.dep 
  176. .s.dep:; echo "$*.o : $*.s" > $*.dep
  177.     
  178. include Makefile.depend
  179. @
  180.  
  181.  
  182. 1.2
  183. log
  184. @*** empty log message ***
  185. @
  186. text
  187. @d4 1
  188. a4 1
  189. PARALLEL=5
  190. d6 12
  191. a17 1
  192. vpath    %.h ../Src
  193. d19 3
  194. a21 1
  195. vpath    %.s ../Src
  196. a22 2
  197. CCDEBUG = -g -O
  198.  
  199. d26 1
  200. d28 6
  201. a33 2
  202. ifeq ($(HOSTTYPE),sun)
  203.   ASMOBJ=subs-sun.o HardSpinLock-sun.o
  204. d36 4
  205. a39 2
  206. ifeq ($(HOSTTYPE),encore)
  207.   ASMOBJ = HardwareContext-encore.o HardSpinLock-encore.o
  208. d42 6
  209. d57 1
  210. a57 1
  211.     $(RANLIB) $(LIB)
  212. d59 1
  213. a59 1
  214. install: installLib installHdr
  215. d61 11
  216. d73 4
  217. a76 6
  218.     -install -c -m 666 ../Obj-gcc/libawe2-gcc.a $(INSTALL_LIB)/libawe2-gcc.a
  219.     -$(RANLIB) $(INSTALL_LIB)/libawe2-gcc.a
  220.     -install -c -m 666 ../Obj-g++/libawe2-g++.a $(INSTALL_LIB)/libawe2-g++.a
  221.     -$(RANLIB) $(INSTALL_LIB)/libawe2-g++.a
  222.     -chmod 444 $(INSTALL_LIB)/libawe2-g++.a \
  223.           $(INSTALL_LIB)/libawe2-gcc.a
  224. d88 4
  225. d96 1
  226. a96 1
  227.     $(MAKE) -c ../Obj-gcc clean
  228. d119 7
  229. a131 8
  230.     echo 'OBJ    = \' >> Makefile.files
  231.     ls *.cc | sed             \
  232.         -e '/Generic/d'        \
  233.         -e 's/\.cc/\.o/'    \
  234.         -e 's/^/    /'     \
  235.         -e 's/$$/\\/'        \
  236.         -e '$$s/\\$$//'     >>Makefile.files
  237.     echo ' ' >> Makefile.files
  238. d133 1
  239. a133 1
  240. depend: $(CSRC)
  241. d135 10
  242. a144 5
  243.     $(MAKE) Makefile.depend
  244.  
  245. Makefile.depend: $(SRC)
  246.     $(CXX) $(CXXFLAGS) -M $^ > Makefile.depend
  247.  
  248. @
  249.  
  250.  
  251. 1.1
  252. log
  253. @Initial revision
  254. @
  255. text
  256. @d10 1
  257. a10 1
  258. CCDEBUG = -g
  259. @
  260.